package com.web.web;

import java.util.List;

import com.database.daos.IProjectDao;
import com.database.objects.Project;
import com.opensymphony.xwork2.ActionSupport;

public class ListAction extends ActionSupport {

	private static final long serialVersionUID = 1L;

	private IProjectDao projectDao;

	public String index() {
		return SUCCESS;
	}

	public void setProjectDao(IProjectDao projectDao) {
		this.projectDao = projectDao;
	}

	public List<Project> getProjects() {
		return projectDao.findByAll();
	}

}